home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tclX-6.4 / help / strings / scan < prev    next >
Encoding:
Text File  |  1992-12-17  |  952 b   |  16 lines

  1.           scan string format varname1 ?varname2 ...?
  2.                This command parses fields from an input string in  the
  3.                same  fashion  as the C sscanf procedure.  String gives
  4.                the input to be parsed  and  format  indicates  how  to
  5.                parse  it,  using  %  fields  as in sscanf.  All of the
  6.                sscanf options are valid; see the sscanf man  page  for
  7.                details.   Each  varname  gives the name of a variable;
  8.                when a field is scanned  from  string,  the  result  is
  9.                converted  back  into  a  string  and  assigned  to the
  10.                corresponding varname.  The only unusual conversion  is
  11.                for %c.  For %c conversions a single character value is
  12.                converted to a decimal string, which is  then  assigned
  13.                to  the  corresponding  varname;  no field width may be
  14.                specified for this conversion.
  15.  
  16.